package com.atguigu.gulimall.member;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 *  远程调用别的服务
 *      1 引入open feign坐标
 *      2 写一个接口, 告诉spring cloud 这个接口要调用远程服务
 *      3 开启远程调用功能
 */
@EnableFeignClients(basePackages = "com.atguigu.gulimall.member.feign") // 开启feign远程调用
@EnableDiscoveryClient // 开启服务发现
@SpringBootApplication
public class MemberApplication {

    public static void main(String[] args) {
        SpringApplication.run(MemberApplication.class, args);
    }
}
